#define WIN32_LEAN_AND_MEAN

#include <TrainerLib.h>
#include "resource.h"

#ifndef DEBUG
// Disable command prompt window
#pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")
#endif

int main()
{
	TLib::STrainer app("NFS Underground 2", "NFSU2 Trainer", 343, 300, IDI_ICON1, IDB_BITMAP1);
	app.setAboutInfo("NFSU2 Trainer\nglass660@gmail.com");
	/*
	--NOS
	00592271 - 89 86 1c 04 00 00          - mov [esi+0000041c],eax

	(replace with nops)
	*/
	app.addCheat(new TLib::SCheat("Unlimited NOS", &app, new TLib::NopPatch(0x00592271, 6)));
	return app.Run();
}